local skynet = require "skynet"

skynet.start(function()
  skynet.dispatch("lua", function(session, source, cmd, ...)
    if cmd == "ping" then
      skynet.error("[myservice] pong")
      skynet.ret(skynet.pack("PONG"))
    else
      skynet.error("[myservice] unknown cmd", cmd)
    end
  end)
  skynet.error("[myservice] ready")
end)
